package com.moji.service;

import com.moji.common.base.ApiResult;
import com.moji.common.entity.MyPage;
import com.moji.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.moji.entity.dto.ModifyPasswordDto;
import com.moji.entity.dto.PrOnOffDto;
import com.moji.entity.dto.SysUserDto;
import com.moji.entity.vo.SysUserVo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 人员信息表 服务类
 * </p>
 *
 * @author ccl
 * @since 2024-07-20
 */
public interface SysUserService extends IService<SysUser> {

    //保存数据
    ApiResult add(SysUserDto sysUser);

    //编辑数据
    ApiResult edit(SysUserDto sysUser);

    //删除数据
    boolean delete(Long id);

    //用户详情
    SysUserVo detail(Long id);

    //分页数据查询
    MyPage<SysUserVo> queryPage(SysUser sysUser);

    //更新用户启停状态
    boolean updateStatus(PrOnOffDto prOnOffDao);

    //重置密码
    boolean resetPassword(Long id);

    //修改密码
    boolean modifyPassword(ModifyPasswordDto modifyPasswordDao);

}
